export const plant = {
    shape: 'plant',
    r: 50,
    n: 3,
    depth: 9,
    a: -90,
    k: 0.618,
    wriggle: 100,
    treeCurve: 'V',
    pathMode: 'LINE_STRIP',
    curve: 'none',
    color: {
        type: 'colorCircle',
        alpha: 0.5,
        fill: true
    },
    alpha: 0.9,
    // labels:{}
    // fill:{}
    props: {
        // stroke: 'red',
        // fill: 'none',
        strokeWidth: 1,
        strokeDasharray: 0,
        strokeDashoffset: 0
    }
}


export const bush = {
    shape: 'lsystemPlant',
    r: 10,
    angle: 21,
    depth: 4,
    wriggle: 5,
    reduction: 0.9,
    color: {
        type: 'colorCircle',
        alpha: 0.5,
        fill: true
    },
    // oneLine: false,
    pathMode: 'LINE_STRIP',
    // curve: 'none',
    labels: {
        show: false,
        stroke: 'gray',
        fontSize: 14
    },
    axiom: 'F',
    rules: {
        F: 'F+-F+[c+F-F-F]-[-F+F+dF]'
    },
    props: {
        // fill:'none',
        stroke: 'red',
        strokeWidth: 1,
        strokeDasharray: 0

    }
}

export const aquatic = {
    shape: 'lsystemPlant',
    r: 10,
    angle: 27,
    depth: 4,
    wriggle: 0,
    reduction: 1.0,
    color: {
        type: 'colorCircle',
        alpha: 0.5,
        fill: true
    },
    labels: {
        show: false,
        stroke: 'gray',
        fontSize: 14
    },
    edge: {
        show: true,
        fill: 'none',
        stroke: 'red'
    },
    // pathMode: 'LINE_STRIP',
    // curve: 'none',
    axiom: 'F',
    rules: {
        F: 'FMNOMBxPNMyO',
        M: 'e[-F++F++]',
        N: 'd[+F--F--]',
        O: 'c++F--F',
        P: 'd--F++F'
    },
}

export const saupe = {
    shape: 'lsystemPlant',
    r: 10,
    angle: 20,
    depth: 7,
    wriggle: 2,
    reduction: 1.0,
    color: {
        type: 'colorCircle',
        alpha: 0.5,
        fill: true
    },
    labels: {
        show: false,
        stroke: 'gray',
        fontSize: 14
    },
    // pathMode: 'LINE_STRIP',
    // curve: 'none',
    axiom: 'VZFFF',
    rules: {
        V: '[+++W][---W]YV',
        W: '+X[-W]Z',
        X: '-W[+X]Z',
        Y: 'YZ',
        Z: 'F+-F[-FcFF][+FdFF]F'
    },
}

export const shrub = {
    shape: 'lsystemPlant',
    r: 5,
    angle: 322,
    depth: 4,
    wriggle: 10,
    reduction: 0.8,
    color: {
        type: 'colorCircle',
        alpha: 0.5,
        fill: true
    },
    labels: {
        show: false,
        stroke: 'gray',
        fontSize: 14
    },
    // pathMode: 'LINE_STRIP',
    // curve: 'none',
    axiom: 'F',
    rules: {
        F: 'F+-e[+cFF]Fd[-FF]cF',
    },
}

export const aquaticPlant = {
    shape: 'lsystemPlant',
    axiom: 'F',
    rules: { F: 'F+-Fc[-F++F]d[+F--F]e++F--F' },
    angle: 27,
    r: 10,
    depth: 3,
    wriggle: 10,
    reduction: 0.9,
    color: {
        type: 'colorCircle',
        alpha: 0.5,
        fill: true
    },
    labels: {
        show: false,
        stroke: 'gray',
        fontSize: 14
    },
    // pathMode: 'LINE_STRIP',
    // curve: 'none'
}

export const LsystemTree = {
    shape: 'lsystemPlant',
    axiom: 'F',
    rules: { F: 'F[+F-F]-F+F' },
    angle: 22,
    r: 10,
    depth: 4,
    wriggle: 10,
    reduction: 1.0,
    color: {
        type: 'colorCircle',
        alpha: 0.5,
        fill: true
    },
    labels: {
        show: false,
        stroke: 'gray',
        fontSize: 14
    },
    pathMode: 'LINE_STRIP',
    // curve: 'none',
}
